// ignore_for_file: prefer_typing_uninitialized_variables, must_be_immutable

import 'package:aitao_flutter/res/r.dart';
import 'package:flutter/material.dart';

class SayHelloBtn extends StatelessWidget {
  SayHelloBtn({super.key, required this.helloCallBack});
  var helloCallBack;
  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      child: Container(
        height: 44,
        width: 155,
        alignment: Alignment.center,
        decoration: const BoxDecoration(
            borderRadius: BorderRadius.all(Radius.circular(22)),
            gradient: LinearGradient(
                begin: Alignment.centerLeft,
                end: Alignment.centerRight,
                colors: <Color>[Color(0xFFFF8B9E), Color(0xFFFF7483)])),
        child: Row(mainAxisAlignment: MainAxisAlignment.center, children: [
          Image.asset(ImagePath.assetsHelloIcon),
          const Text(
            '打招呼',
            style: TextStyle(fontSize: 15, color: Colors.white),
          )
        ]),
      ),
      onTap: () {
        helloCallBack();
      },
    );
  }
}
